home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / contents / scripts / pdksh-2.1.13 < prev    next >
Text File  |  1997-06-06  |  523b  |  23 lines

  1. if fgrep KSH_VERSION etc/profile 1> /dev/null 2> /dev/null; then
  2.  GOOD=y
  3. else
  4.  echo 'if [ ! "$KSH_VERSION" = "" ]; then' >> etc/profile
  5.  cat << EOF >> etc/profile
  6.  . /etc/ksh.kshrc
  7.  if [ -r $HOME/.kshrc ]; then
  8.   . $HOME/.kshrc
  9.  fi
  10. fi
  11. EOF
  12. fi
  13. if fgrep ksh etc/shells 1> /dev/null 2> /dev/null; then
  14.  GOOD=y
  15. else
  16.  echo "/bin/pdksh" >> etc/shells
  17.  echo "/bin/ksh" >> etc/shells
  18. fi
  19. ( cd bin ; rm -rf ksh )
  20. ( cd bin ; ln -sf  pdksh ksh )
  21. ( cd usr/man/man1 ; rm -rf pdksh.1.gz )
  22. ( cd usr/man/man1 ; ln -sf  ksh.1.gz pdksh.1.gz )
  23.